var mongoose = require('mongoose')
const restify = require('express-restify-mongoose')
var express = require('express');
const router = express.Router()

var db = 'mongodb://47.106.137.50:27017/xxgl';
mongoose.set('useCreateIndex', true);
mongoose.connect(db, { useNewUrlParser: true });
const ObjectId = mongoose.Schema.Types.ObjectId;

var Information = mongoose.model('Information',mongoose.Schema({
    stunumber:{type: String},
    name:{type: String},
    phone: {type: String},
    region:{type: String},
    school:{type: String},
    title:{type: String},
    payTaxes:{type: String},
    position:{type: String},
    eml:{type: String},
    jdname:{type: String},
    room:{type: String},
    checkOut:{type: String},
    site:{type: String},
    outTime:{type: String},
    Return:{type: String},
    fK:{type: String},
    onlic:{type: String},
    grouping:{type: String},
    onroom:{type: String},
    bz:{type: String}
}))
exports.Information = Information